<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="d1">
			<h1>制作一个新页面</h1>
		</div>
		<div id="d2" name="d2">
			<p>第一个P标签</p>
			<p>第二个P标签</p>
			<p>第三个P标签</p>
			<p>第四个P标签</p>
			<p>第五个P标签</p>
			<img src="../BOM%20DOM%20模型作业/img/src=http___b-ssl_duitang_com_uploads_item_201807_30_20180730163717_gbqnc_thumb_700_0_jpg&refer=http___b-ssl_duitang.jpg" >
		</div>
		<div id="d3">
			<table border="0px" cellspacing="" cellpadding="" style="height: 30px;">
				<tr>
					<td>第一行</td>
				</tr>
				<tr>
					<td>第二行</td>
				</tr>
				<tr>
					<td>第三行</td>
				</tr>
			</table>
		</div>
	</body>
	<script type="text/javascript">
		var aa=document.getElementById('d1');
		console.log(aa);
		
		var bb=document.getElementsByName('d2');
		console.log(bb);
		
		var cc=document.getElementsByTagName('table')
		console.log(cc);
	</script>
</html>
